package com.gulimall.gulimallproduct.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gulimall.common.utils.PageUtils;
import com.gulimall.gulimallproduct.entity.CategoryEntity;
import com.gulimall.gulimallproduct.vo.Catelog2Vo;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author niujiaxing
 * @email sunlightcs@gmail.com
 * @date 2025-05-08 21:33:57
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity> listWithTree();

    void removeMenuByids(List<Long> list);

    Long[] findCatelogPath(Long catelogId);

    void updateCascade(CategoryEntity category);

    /**
     * 查出所有一级分类
     * @return
     */
    List<CategoryEntity> getLeve1Categorys();

    Map<String, List<Catelog2Vo>> getCatelogJson();
}

